sched_rt: avoid ASSERT()ing on runq dump if there are no domains
authorDario Faggioli <dario.faggioli@citrix.com>
Wed, 18 Mar 2015 13:20:01 +0000 (14:20 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 18 Mar 2015 13:20:01 +0000 (14:20 +0100)
commita90babbd23dc3a75f8b5c59541f963ed6a07d2c2
treea5821d567c1740b68ce1bbebef13553dd5e3a9e1
parenta47d6cdb07709c941993e334f9bd82b3aec11dac
sched_rt: avoid ASSERT()ing on runq dump if there are no domains

being serviced by the RTDS scheduler, as that is a
legit situation to be in: think, for instance, of a
newly created RTDS cpupool, with no domains migrated
to it yet.

While there:
 - move the spinlock acquisition up, to effectively
   protect the domain list and avoid races;
 - the mask of online pCPUs was being retrieved
   but then not used anywhere in the function: get
   rid of that.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Reviewed-by: Meng Xu <mengxu@cis.upenn.edu>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/common/sched_rt.c